public class Overload {
    public static void main(String[] args) {

        int a = 100;
        int b = 101;
        System.out.println(max(a, b));

        double a2 = 1.4;
        double b2 = 3.2;
        double c = 2.1;
        System.out.println(max(a2, b2, c));
    }

    public static int max(int a, int b) {
        return a > b ? a : b;
    }

    public static double max(double a, double b, double c) {
        return (a > b ? a : b) > c ? (a > b ? a : b) : c;
    }
}
